import Vue from 'vue'
import VueRouter from 'vue-router'
import Login from '../ages/Login.vue'
import Register from '../ages/Register.vue'
import User from '../ages/User'

Vue.use(VueRouter)

const router = new VueRouter({
  routes: [
    {
      path: '/',
      component: Login
    },
    {
      path: '/login',
      name: '/login',
      component: Login
    },
    {
      path: '/register',
      name: '/register',
      component: Register
    },
    {
      path: '/user',
      name: '/user',
      component: User
    }
  ]
})

export default router
